package cn.tom.dao;

import cn.tom.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    //根据role查询所有老师或者学生
    public List<User> findOneByRole(String role);
    /*根据手机号查询*/
    public User findOneByPhone(String phone);
    /*修改学生密码*/
    public User update (User user);
    /*根据uid查询*/
    public User fiduid(int uid);
    /*根据 stu 查询学生班级*/
    public List<User> finByclz(String role);
    public List<User> findByRole(String role);
    public void add(User user);
    /*根据uid删除*/
    public int del(int uid);
    public List<User> findStusByclz(String clzno);
    public User findByUid(int uid);
}
